package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.CounterpartyPermissionHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/counterpartyPermission", r.somsHandler.ListCounterpartyPermission())
	group.GET("/counterpartyPermission/:id", r.somsHandler.GetCounterpartyPermission())
	group.PUT("/counterpartyPermission", r.somsHandler.AddCounterpartyPermission())
	group.POST("/counterpartyPermission/:id", r.somsHandler.EditCounterpartyPermission())
	group.DELETE("/counterpartyPermission/:id", r.somsHandler.DeleteCounterpartyPermission())
	group.POST("/batchDeleteCounterpartyPermission", r.somsHandler.BatchDeleteCounterpartyPermission())
}